package com.gzq.factorymethod.exam15;

import java.lang.reflect.InvocationTargetException;

public class BaGuaLuImpl implements IBaGuaLu {

	@Override
	public <T extends IHuman> T create(Class<T> c)
			throws InstantiationException, IllegalAccessException,
			IllegalArgumentException, InvocationTargetException,
			NoSuchMethodException, SecurityException {
		T newInstance = c.getDeclaredConstructor().newInstance();
		return newInstance;
	}

}
